package geek.basic;
import java.util.Scanner;

public class check_odd_even_using_ternary {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.print("Enter any number: ");
        int num = sc.nextInt();
        sc.close();

        String evenOrOdd = (num % 2 == 0) ? "even number" : "odd number";
        System.out.println(num + " is an " + evenOrOdd);
    }
}
